package com.huarui.notice;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.model.PagingInfo;

public interface INoticeService {

	void send(final Notice notice, Integer permission);

	void create(final Notice notice);

	boolean update(final Notice notice);

	Notice query(int noticyId);

	/*	*//**
	 * 获取待某人/机构处理的消息
	 * 
	 * @param type
	 * @param receiverId
	 * @return
	 */
	/*
	 * List<Notice> getNotices(int type , int receiverId );
	 */

	/**
	 * 获取发给当前用户所在公司的消息
	 * 
	 * @deprecated
	 */
	List<Notice> getMyCorpReceivingNotices();

	/**
	 * 获取发给当前用户的消息
	 */
	List<Notice> getMyReceivingNotices();

	/**
	 * 获取当前用户发出的消息
	 * 
	 * @return
	 */
	List<Notice> getMySendingNotices();

	public void getPagingMyReceivingNotices(PagingInfo<Notice, Notice> paginInfo);

	public int getMyReceivingNoticeCount(int lastNoticeId);

	public boolean remove(Integer[] ids);

	public Notice read(int id) ;
	
	public boolean deal(Integer[] ids, boolean dealed,
			Map<String, Object> resultHolder);

	public boolean deal(Integer id, boolean dealed,
			Map<String, String[]> params, Map<String, Object> resultHolder);

}
